package com.eastfair.venueservice.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * 服务库存
 * </p>
 *
 * @author linan
 * @since 2022-07-14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ServiceInventoryPageQuery", description = "服务库存")
public class ServiceInventoryQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 服务项id
     */
    @ApiModelProperty(value = "服务项id")
    private Long serviceItemId;
    /**
     * 服务分类id
     */
    @ApiModelProperty(value = "服务分类id")
    private Long serviceCategoryId;
    /**
     * 服务规格id
     */
    @ApiModelProperty(value = "服务规格id")
    private Long serviceSpecsId;
    /**
     * 库存编码
     */
    @ApiModelProperty(value = "库存编码")
    private String inventoryCode;
    /**
     * 服务库存
     */
    @ApiModelProperty(value = "服务库存")
    private BigDecimal inventoryNum;
    /**
     * 服务预警值
     */
    @ApiModelProperty(value = "服务预警值")
    private BigDecimal earlyWarningValue;

    /**
     * 服务名称
     */
    @ApiModelProperty(value = "服务名称")
    private String serviceName;

    /**
     * 服务规格名称
     */
    @ApiModelProperty(value = "服务规格名称")
    private String serviceSpecsName;


    /**
     * 创建时间开始
     */
    @ApiModelProperty(value = "创建时间开始")
    private LocalDateTime createTimeStart;

    /**
     * 创建时间结束
     */
    @ApiModelProperty(value = "创建时间结束")
    private LocalDateTime createTimeEnd;
    /**
     * 供应商类型 字典维护
     */
    @ApiModelProperty(value = "供应商类型 字典维护")
    @Size(max = 255, message = "供应商类型 字典维护长度不能超过255")
    private String serviceProviderType;

    /**
     * 关键词
     */
    @ApiModelProperty(value = "关键词")
    private String keyword;
    /**
     * 服务部门id/服务商id/主场id
     */
    @ApiModelProperty(value = "服务部门id/服务商id/主场id")
    @NotNull(message = "服务部门不能为空",groups =  {ServiceItemDTO.AddCheck.class, ServiceItemDTO.UpdateCheck.class})
    private Long serviceProviderId;
    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    private Long exhibitionManageId;
}
